package cn.wolfcode.business.service;

import cn.wolfcode.business.domain.BusBpmnInfo;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

@Service
public interface BusBpmnInfoService {
    List<BusBpmnInfo> list(BusBpmnInfo busBpmnInfo);

    int add(MultipartFile file, Integer bpmnType, String info) throws IOException;

    InputStream readResource(Long id, String type);

    int remove(Long id);

    BusBpmnInfo selectType(Integer flowAuditType);
}
